package com.hyts.fsm;

/**
 * Created by lmy on 2015/9/2.
 */
public class FSMException extends Exception{

    public final static int FSM_MATCH_NOSTATE_ERRORCODE = 100000;
    public final static String FSM_MATCH_NOSTATE_ERRORMSG = "fsm not find match state";

    protected int code = -1;
    protected String msg;

    public FSMException(int code, String msg) {
        super(msg);
        this.code = code;
        this.msg = msg;
    }

    public FSMException(String msg) {
        super(msg);
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
